﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace Beauty
{
	public class productCell : UICollectionViewCell
	{
		UIImageView imageView;	
		public UIImage Image{ set { imageView.Image = value; } }
		[Export("initWithFrame:")]
		public productCell (System.Drawing.RectangleF frame) : base(frame)
		{
			BackgroundView = new UIView {   	BackgroundColor = UIColor.Magenta };

			SelectedBackgroundView = new UIView {  BackgroundColor = UIColor.Purple };
			//ContentView.Frame = new RectangleF (0, 0, 200, 200);
			ContentView.Layer.BorderColor = UIColorExtensions.FromHexString("#b2b2b2").CGColor;
			ContentView.Layer.BorderWidth = 0.8f;
			ContentView.BackgroundColor = UIColor.Gray;

			imageView = new UIImageView (UIImage.FromFile ("mainmenu.png"));
			imageView.Frame = new System.Drawing.RectangleF (0, 0, 130,130);
			imageView.Center = ContentView.Center;

			UIView textContent = new UIView (new RectangleF (0, 0, 130, 30));
			textContent.BackgroundColor = UIColor.Black;
			textContent.Center = new PointF (imageView.Center.X,imageView.Frame.Height - 15 );
			textContent.Layer.Opacity = 0.3f;

			UILabel text = new UILabel (new RectangleF (imageView.Center.X - 30, imageView.Frame.Height - 25 , 100, 20));
			text.Text = "Product 1";
			text.TextColor = UIColorExtensions.FromHexString("#ffffff");
			 

			imageView.Add (textContent);

			imageView.AddSubview (text);
			ContentView.AddSubview (imageView);
		}
	}
	public class serviceCell : UICollectionViewCell
	{
		UIImageView imageView;	
		public UIImage Image{ set { imageView.Image = value; } }
		[Export("initWithFrame:")]
		public serviceCell (System.Drawing.RectangleF frame) : base(frame)
		{
			BackgroundView = new UIView {   	BackgroundColor = UIColor.Magenta };

			SelectedBackgroundView = new UIView {  BackgroundColor = UIColor.Purple };
			//ContentView.Frame = new RectangleF (0, 0, 200, 200);
			ContentView.Layer.BorderColor = UIColorExtensions.FromHexString("#b2b2b2").CGColor;
			ContentView.Layer.BorderWidth = 0.8f;
			ContentView.BackgroundColor = UIColor.Gray;

			imageView = new UIImageView (UIImage.FromFile ("mainmenu.png"));
			imageView.Frame = new System.Drawing.RectangleF (0, 0, 130,130);
			imageView.Center = ContentView.Center;

			UIView textContent = new UIView (new RectangleF (0, 0, 130, 30));
			textContent.BackgroundColor = UIColor.Black;
			textContent.Center = new PointF (imageView.Center.X,imageView.Frame.Height - 15 );
			textContent.Layer.Opacity = 0.3f;

			UILabel text = new UILabel (new RectangleF (imageView.Center.X - 30, imageView.Frame.Height - 25 , 100, 20));
			text.Text = "Hair Cut";
			text.TextColor = UIColorExtensions.FromHexString("#ffffff");


			imageView.Add (textContent);

			imageView.AddSubview (text);
			ContentView.AddSubview (imageView);
		}
	}
	public class packageCell : UICollectionViewCell
	{
		UIImageView imageView;	
		public UIImage Image{ set { imageView.Image = value; } }
		[Export("initWithFrame:")]
		public packageCell (System.Drawing.RectangleF frame) : base(frame)
		{
			BackgroundView = new UIView {   	BackgroundColor = UIColor.Magenta };

			SelectedBackgroundView = new UIView {  BackgroundColor = UIColor.Purple };
			//ContentView.Frame = new RectangleF (0, 0, 200, 200);
			ContentView.Layer.BorderColor = UIColorExtensions.FromHexString("#b2b2b2").CGColor;
			ContentView.Layer.BorderWidth = 0.8f;
			ContentView.BackgroundColor = UIColor.Gray;

			imageView = new UIImageView (UIImage.FromFile ("mainmenu.png"));
			imageView.Frame = new System.Drawing.RectangleF (0, 0, 130,130);
			imageView.Center = ContentView.Center;

			UIView textContent = new UIView (new RectangleF (0, 0, 130, 30));
			textContent.BackgroundColor = UIColor.Black;
			textContent.Center = new PointF (imageView.Center.X,imageView.Frame.Height - 15 );
			textContent.Layer.Opacity = 0.3f;

			UILabel text = new UILabel (new RectangleF (imageView.Center.X - 30, imageView.Frame.Height - 25 , 100, 20));
			text.Text = "Packages";
			text.TextColor = UIColorExtensions.FromHexString("#ffffff");


			imageView.Add (textContent);

			imageView.AddSubview (text);
			ContentView.AddSubview (imageView);
		}
	}
	public class giftCell : UICollectionViewCell
	{
		UIImageView imageView;	
		public UIImage Image{ set { imageView.Image = value; } }
		[Export("initWithFrame:")]
		public giftCell (System.Drawing.RectangleF frame) : base(frame)
		{
			BackgroundView = new UIView {   	BackgroundColor = UIColor.Magenta };

			SelectedBackgroundView = new UIView {  BackgroundColor = UIColor.Purple };
			//ContentView.Frame = new RectangleF (0, 0, 200, 200);
			ContentView.Layer.BorderColor = UIColorExtensions.FromHexString("#b2b2b2").CGColor;
			ContentView.Layer.BorderWidth = 0.8f;
			ContentView.BackgroundColor = UIColor.Gray;

			imageView = new UIImageView (UIImage.FromFile ("mainmenu.png"));
			imageView.Frame = new System.Drawing.RectangleF (0, 0, 130,130);
			imageView.Center = ContentView.Center;

			UIView textContent = new UIView (new RectangleF (0, 0, 130, 30));
			textContent.BackgroundColor = UIColor.Black;
			textContent.Center = new PointF (imageView.Center.X,imageView.Frame.Height - 15 );
			textContent.Layer.Opacity = 0.3f;

			UILabel text = new UILabel (new RectangleF (imageView.Center.X - 30, imageView.Frame.Height - 25 , 100, 20));
			text.Text = "Gift 1";
			text.TextColor = UIColorExtensions.FromHexString("#ffffff");


			imageView.Add (textContent);

			imageView.AddSubview (text);
			ContentView.AddSubview (imageView);
		}
	}
	public class discountCell : UICollectionViewCell
	{
		UIImageView imageView;	
		public UIImage Image{ set { imageView.Image = value; } }
		[Export("initWithFrame:")]
		public discountCell (System.Drawing.RectangleF frame) : base(frame)
		{
			BackgroundView = new UIView {   	BackgroundColor = UIColor.Magenta };

			SelectedBackgroundView = new UIView {  BackgroundColor = UIColor.Purple };
			//ContentView.Frame = new RectangleF (0, 0, 200, 200);
			ContentView.Layer.BorderColor = UIColorExtensions.FromHexString("#b2b2b2").CGColor;
			ContentView.Layer.BorderWidth = 0.8f;
			ContentView.BackgroundColor = UIColor.Gray;

			imageView = new UIImageView (UIImage.FromFile ("mainmenu.png"));
			imageView.Frame = new System.Drawing.RectangleF (0, 0, 130,130);
			imageView.Center = ContentView.Center;

			UIView textContent = new UIView (new RectangleF (0, 0, 130, 30));
			textContent.BackgroundColor = UIColor.Black;
			textContent.Center = new PointF (imageView.Center.X,imageView.Frame.Height - 15 );
			textContent.Layer.Opacity = 0.3f;

			UILabel text = new UILabel (new RectangleF (imageView.Center.X - 30, imageView.Frame.Height - 25 , 100, 20));
			text.Text = "Discount 1";
			text.TextColor = UIColorExtensions.FromHexString("#ffffff");


			imageView.Add (textContent);

			imageView.AddSubview (text);
			ContentView.AddSubview (imageView);
		}
	}
}

